package com.surelution.lansao

class Item {

    static constraints = {
    }
	
	def beforeValidate() {
		if(available == null) {
			available = true
		}
	}

	Partner partner
	String name
	Float price
	Boolean available
	String description
	String imgPath
	
	@Override
	public String toString() {
		return "Item [name=" + name + ", price=" + price + ", available="
				+ available + ", description=" + description + "]";
	}
}
